package com.it.domain;

public class Manager extends Employee{
    private int bonus;

    public Manager() {
    }

    public Manager(String name, int age, int income, int bonus) {
        super(name, age, income);
        this.bonus = bonus;
    }

    public void work(){
        System.out.println("姓名为"+super.getName()+",年龄为"+super.getAge()+",工资为"+super.getIncome()+",奖金为"+bonus+"的项目经理正在分配任务...");

    }

    /**
     * 获取
     * @return bonus
     */
    public int getBonus() {
        return bonus;
    }

    /**
     * 设置
     * @param bonus
     */
    public void setBonus(int bonus) {
        this.bonus = bonus;
    }


}
